<include file="Public:header"/>
<link href="__PUBLIC__/js/raty/stylesheets/labs.css" media="screen" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="__PUBLIC__/js/raty/stylesheets/jquery.raty.css">
<script src="__PUBLIC__/js/raty/javascripts/jquery.js"></script>
<script src="__PUBLIC__/js/raty/javascripts/jquery.raty.js"></script>
<script src="__PUBLIC__/js/raty/javascripts/labs.js" type="text/javascript"></script>
<link href="__PUBLIC__/Catalog/css/ordersContent.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
<div class="title">
         <div class="title1">
             <a href="{$back}" id="back"> < </a>交易评价
         </div>
   </div>
   <div class="jiaoyi">
	<if condition="$atype eq 1">【销售】<else/>【购买】</if>{$orderDetail.products_name}<br/>
	下单时间:{$orderDetail.order_date_added}<br/>
	订单编号:{$orderDetail.order_num}<br/>
	卖家用户：{$showmember.name}&nbsp;&nbsp;{$showmember.tel}<br/>
	交易方式:<if condition="$orderDetail['order_type'] eq 1">线下交易<else/>在线交易</if><br/>
	价格:{$orderDetail.pay_price}<br/>
	</div>
	<div class="jiaoyi">
	为这次交易打分吧：
	<form action="<if condition='$atype eq 1'>{:U('Order/sappraise')}<else/>{:U('Order/appraise')}</if>" method="post" >
		<div id="targetKeep" class="star"></div>
		<div id="targetKeep-hint" class="star-text"></div>
		<br/>
		<textarea cols="30" rows="5" name="comment" style="border:1px solid #cecece"></textarea>
	    <input type="hidden" name="orderid" value="{$orderDetail.order_id}" />
	    <input type="hidden" name="atype" value="{$atype}" />
	    <input type="submit" name="tijiao" value="提交"/> 
	</form>
	</div>
</div>
<script>
$.fn.raty.defaults.path = '__PUBLIC__/js/raty/images';
$('#targetKeep').raty({
  score: 5,
  cancel     : false,
  target     : '#targetKeep-hint',
  targetKeep : true, 
});

$(function(){
    if('{$msg}'!='0'){
        alert('{$msg}');
    }
});

</script> 
<include file="Public:footer" />